package com.cdxy.model.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @Author: tangy
 * @Date: 2020/3/22 14:02
 */
@Data
@ApiModel
public class ModifyUserInfoReq extends UserWithLoginReq implements Serializable {

    private static final long serialVersionUID = -7746352485388911847L;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "性别")
    private Integer sex;

    @ApiModelProperty(value = "个性签名")
    private String selfhoodSign;

    @ApiModelProperty(value = "出生日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthDay;

    @ApiModelProperty(value = "爱好")
    private String hobbit;

    @ApiModelProperty(value = "地区")
    private String areas;

}
